/**
 *  商家
 *
 */
import request from "@/utils/request";

// 列表
export function lists(params) {
  return request({
    url: "/manage/provider/lists",
    method: "get",
    params,
  });
}

// 添加
export function add(data) {
  return request({
    url: "/manage/provider/add",
    method: "post",
    data: data,
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

// 编辑
export function edit(data) {
  return request({
    url: "/manage/provider/edit",
    method: "post",
    data: data,
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

// 删除
export function del(data) {
  return request({
    url: "/manage/provider/del",
    method: "post",
    data: data,
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

// 显示隐藏
export function state(data) {
  return request({
    url: "/manage/provider/state",
    method: "post",
    data: data,
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}
